package com.friends.design.mode.decorate.washfoot;

import java.util.Objects;

/**
 * @Author Zhao Tianhao
 * @Description 装饰器-基类
 * @Date 2024/7/24 11:17
 */
public abstract class WashFootDecorate implements WashFoot {

	private WashFoot washFoot;

	public WashFootDecorate(WashFoot washFoot) {
		this.washFoot = washFoot;
	}

	@Override
	public void washFoot() {
		if (Objects.nonNull(washFoot)) {
			washFoot.washFoot();
		}
	}
}
